package com.aliyun.messagemgt.dto;

import com.aliyun.messagemgt.common.dto.base.UserInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 
 * @author  byp
 * @date 2020/08/11 
 */
@Accessors(chain = true)
@Data
public class MessageTemplate extends UserInfo implements Serializable {

	@ApiModelProperty(value = "消息模板id")
	private Long templateId;

	@ApiModelProperty(value = "租户编码")
	private String tenantCode;

	@ApiModelProperty(value = "租户名称")
	private String tenantName;

	@ApiModelProperty(value = "消息模板编码")
	private String templateCode;

	@ApiModelProperty(value = "消息模板名称")
	private String templateName;

	@ApiModelProperty(value = "消息模板标题")
	private String templateTitle;

	@ApiModelProperty(value = "业务类型")
	private String busType;

	@ApiModelProperty(value = "备注")
	private String description;

	@ApiModelProperty(value = "模板内容")
	private String templateContent;

	@ApiModelProperty(value = "消息模板状态 1-启用 2-禁用")
	private String isEnabled;

	@ApiModelProperty(value = "属性对象")
	private List<MessageTemplateParam> paramList;

	@ApiModelProperty(value = "是否逻辑删除 Y-已删除 N-未删除")
	private String isDeleted;

	@ApiModelProperty(value = "创建人")
	private String creator;

	@ApiModelProperty(value = "创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date gmtCreated;

	@ApiModelProperty(value = "更新人")
	private String modifier;

	@ApiModelProperty(value = "更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date gmtModified;

	@ApiModelProperty(value = "attribute1")
	private String attribute1;

	@ApiModelProperty(value = "attribute2")
	private String attribute2;

	@ApiModelProperty(value = "attribute3")
	private String attribute3;
}
